package org.jetnuke.dao;

import java.util.List;

import org.jetnuke.entities.PictureVote;

/**
 * @author <a href="ginger547@gmail.com">ginger547</a>
 * @version 2.0
 * @since 2.0
 */
public interface PictureVoteDAO {
	PictureVote retrieveByPK(int id) throws Exception;

	List selectByPicture(int pid) throws Exception;

	int addNew(PictureVote bc) throws Exception;

	List selectLastVoted(int limit) throws Exception;

	boolean alreadyVoted(int pid, int uid) throws Exception;

	void deleteByPID(int pid) throws Exception;
}
